package com.lagou.feign;

import com.lagou.feign.impl.EmailServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName EmailService
 * @Description
 * @Author playboy
 * @Date 2021/6/25 6:41 下午
 * @Version 1.0
 **/
@FeignClient(name = "lagou-service-email", path = "email", fallback = EmailServiceImpl.class)
public interface EmailService {

	@RequestMapping("{email}/{code}")
	boolean email(@PathVariable("email") String email, @PathVariable("code") String code);

}
